/**
 * 
 */
package org.cnbi.utils.chart.base;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * @company 中国经邦
 * @author Administrator
 * @date: 2014年3月14日下午5:27:43
 * @version: V1.0  
 * 
 */
@XmlRootElement(name = "chart")
public class BaseChart implements Serializable {
	/**
	 * 主标题
	 */
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	protected String caption;
	/**
	 * 值数字前的前缀
	 */
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	protected String numberPrefix;
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	protected String bgcolor="FFFFFF";
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	protected String palette ="2";
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	protected String showvalues = "1";
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	protected String showborder = "0";
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	protected String showlegend;
	
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String xaxisname;
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String yaxisname;
	
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String exportenabled="0";//
	/**
	 * 是否格式化数值
	 */
	private String formatnumber="1";
	/**
	 * 是否对大数值以k,M方式表示
	 */
	private String formatnumberscale="0";
	/**
	 * 小数点后位数不够的，是否强制补0
	 */
	private String forcedecimals="1"; 
	
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String showpercentvalues;
	 
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String yaxisvaluedecimals;
	
	private String decimals="2";
	
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String showlabels;//小数点后保留几位
	
	
	
	@XmlAttribute
	public String getDecimals() {
		return decimals;
	}

	public void setDecimals(String decimals) {
		this.decimals = decimals;
	}
	@XmlAttribute
	public String getShowlabels() {
		return showlabels;
	}

	public void setShowlabels(String showlabels) {
		this.showlabels = showlabels;
	}

	public BaseChart(){}
	
	public BaseChart(String caption){
		this.caption = caption;
	}
	@XmlAttribute
	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}
	@XmlAttribute
	public String getNumberPrefix() {
		return numberPrefix;
	}

	public void setNumberPrefix(String numberPrefix) {
		this.numberPrefix = numberPrefix;
	}
	@XmlAttribute
	public String getBgcolor() {
		return bgcolor;
	}

	public void setBgcolor(String bgcolor) {
		this.bgcolor = bgcolor;
	}
	@XmlAttribute
	public String getPalette() {
		return palette;
	}

	public void setPalette(String palette) {
		this.palette = palette;
	}
	@XmlAttribute
	public String getShowvalues() {
		return showvalues;
	}

	public void setShowvalues(String showvalues) {
		this.showvalues = showvalues;
	}
	@XmlAttribute
	public String getShowborder() {
		return showborder;
	}

	public void setShowborder(String showborder) {
		this.showborder = showborder;
	}
	@XmlAttribute
	public String getShowlegend() {
		return showlegend;
	}

	public void setShowlegend(String showlegend) {
		this.showlegend = showlegend;
	}
	@XmlAttribute
	public String getXaxisname() {
		return xaxisname;
	}

	public void setXaxisname(String xaxisname) {
		this.xaxisname = xaxisname;
	}
	@XmlAttribute
	public String getYaxisname() {
		return yaxisname;
	}

	public void setYaxisname(String yaxisname) {
		this.yaxisname = yaxisname;
	}

	
	@XmlAttribute
	public String getExportenabled() {
		return exportenabled;
	}

	public void setExportenabled(String exportenabled) {
		this.exportenabled = exportenabled;
	}
	@XmlAttribute
	public String getFormatnumberscale() {
		return formatnumberscale;
	}

	public void setFormatnumberscale(String formatnumberscale) {
		this.formatnumberscale = formatnumberscale;
	}
	@XmlAttribute
	public String getShowpercentvalues() {
		return showpercentvalues;
	}

	public void setShowpercentvalues(String showpercentvalues) {
		this.showpercentvalues = showpercentvalues;
	}
	@XmlAttribute
	public String getYaxisvaluedecimals() {
		return yaxisvaluedecimals;
	}

	public void setYaxisvaluedecimals(String yaxisvaluedecimals) {
		this.yaxisvaluedecimals = yaxisvaluedecimals;
	}
	@XmlAttribute
	public String getFormatnumber() {
		return formatnumber;
	}

	public void setFormatnumber(String formatnumber) {
		this.formatnumber = formatnumber;
	}
	@XmlAttribute
	public String getForcedecimals() {
		return forcedecimals;
	}

	public void setForcedecimals(String forcedecimals) {
		this.forcedecimals = forcedecimals;
	}
	
	
}
